package com.zhuhjay.service.system.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Zhuhjay
 * @since 2023-03-29
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_dir")
@ApiModel(value = "SystemDir对象", description = "")
public class SystemDir implements Serializable {

    @ApiModelProperty("文件夹id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("文件夹名称")
    private String name;

    @ApiModelProperty("父文件夹id")
    private String parentId;

    @ApiModelProperty("权限(common:公共,public:公开,private:私有)")
    private String power;

    @ApiModelProperty("创建者用户id")
    private Integer userId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
}
